{extend name="main"}

{block name="button"}
{/block}

{block name="content"}

<div class="think-box-shadow margin-top-15">
    <div class="padding-top-20" style="max-width:850px">
        <div class="layui-anim layui-anim-fadein">
            <form action="{:request()->url()}" method="post" data-auto="true" class="layui-form layui-card shadow-none">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>客服上班时间</b><br></label>
                        <div class="layui-input-block">
                            <input required name="service_time"  placeholder="请输入客服上班时间"  value="{:sysconf('service_time')}" class="layui-input">
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>客服电话</b><br></label>
                        <div class="layui-input-block">
                            <input required name="service_phone"  placeholder="请输入客服电话"  value="{:sysconf('service_phone')}" class="layui-input">
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>客服微信二维码</b><br></label>
                        <div class="layui-input-block">
                            <input required  type="hidden"  name="service_wechat_qrcode"  placeholder="请输入客服微信二维码"  value="{:sysconf('service_wechat_qrcode')}" >
                            <script>$('[name=service_wechat_qrcode]').uploadOneImage();</script>
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>飞手须知</b><br></label>
                        <div class="layui-input-block">
                            <textarea required name="pilot_note" placeholder="请输入内容" class="layui-textarea" style="height: 400px">{:sysconf('pilot_note')}</textarea>
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>企业须知</b><br></label>
                        <div class="layui-input-block">
                            <textarea required name="merchant_note" placeholder="请输入内容" class="layui-textarea" style="height: 400px">{:sysconf('merchant_note')}</textarea>
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>飞手用户协议</b><br></label>
                        <div class="layui-input-block">
                            <textarea required name="pilot_agreement" placeholder="请输入内容" class="layui-textarea" style="height: 400px">{:sysconf('pilot_agreement')}</textarea>
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label"><b>企业用户协议</b><br></label>
                        <div class="layui-input-block">
                            <textarea required name="merchant_agreement" placeholder="请输入内容" class="layui-textarea" style="height: 400px">{:sysconf('merchant_agreement')}</textarea>
                            <p class="help-block"></p>
                        </div>
                    </div>
                </div>

                <div class="hr-line-dashed"></div>

                <div class="layui-form-item text-center">
                    <button class="layui-btn" type="submit">保存配置</button>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}

{block name='script'}
<script>
    require(['ckeditor'], function () {
        window.createEditor('[name="pilot_note"]');
        window.createEditor('[name="merchant_note"]');
        window.createEditor('[name="pilot_agreement"]');
        window.createEditor('[name="merchant_agreement"]');
    })
</script>
{/block}
